package org.wattdepot.cli.commands;

import static org.junit.Assert.assertNotNull;
//import java.util.ArrayList;
//import java.util.List;
import org.junit.Test;
import org.wattdepot.cli.CommandLineInterface;
//import org.wattdepot.client.WattDepotClient;
import org.wattdepot.client.WattDepotClientException;

/**
 * Test case for the SourListCommand.
 * @author Paul Galiza
 *
 */
public class TestSourceListCommand {
  
//  private CommandLineInterface client = new CommandLineInterface();
//  private WattDepotClient wdClient = client.getClient();
//  private String source = "SIM_KAHE_7";
//  private List<String> input = new ArrayList<String>();
//  private SourceListCommand command = new SourceListCommand();
//  
//  /**
//   * Initial
//   */
//  public TestSourceListCommand() throws Exception {
//    input.add(0, source);
//    wdClient.getSource(source);
//  }
  
//  /**
//   * Tests the list sources method.
//   * @throws WattDepotClientException thrown if the source name 
//   *         does not exist or if there is a network error. 
//   */
//  @Test
//  public void testListSources() {
//    command.doCommand(input, null);
//  }
  
  /**
   * Tests the list sources method.
   * @throws WattDepotClientException thrown if the source name 
   *         does not exist or if there is a network error. 
   */
  @Test
  public void testSourcesValidation() throws WattDepotClientException {
    CommandLineInterface client = new CommandLineInterface();
    UserCommands command = new UserCommands(client);
    assertNotNull("Make sure getSourceList returns a list",
        command.cli.getSourcesList());
  }
}
